<template>
  <h3>C...</h3>
  <!-- 传递数据，这个数据可以通过作用域插槽获取 -->
  <slot :count="count" />
  <slot name="footer" :count="count" />
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "C",
  data() {
    return {
      count: 11,
    };
  },
});
</script>
